<!-- ZmInput -->
<template>
  <el-input
  :clearable="clearable"
  class="ZmInput"
  v-bind="$attrs"
  @mousewheel.native="handleMousewheel"
  v-on="$listeners"
>
<slot name="append" slot="append" />
<slot name="suffix" slot="suffix" />
</el-input>
</template>

<script>
export default {
  name: 'ZmInput',
  props: {
    clearable: {
      type: Boolean,
      default: true
    }
  },
  data () {
    return {
    }
  },
  methods: {
    // 初始化方法
    init () {},
    handleMousewheel (e) {
      const type = this.$attrs.type
      if (type === 'number') {
        e.preventDefault()
      }
    }
  }
}

</script>
<style lang='scss' scoped>
</style>
